/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import Logica.PromedioTiempoCitas;
import java.util.ArrayList;
import javax.swing.JInternalFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author cynthia
 */
public class CitasGenerales extends JInternalFrame {

    String sexo, estrato, estadocivil, nivelE;

    /**
     * Creates new form CitasGenerales
     */
    public CitasGenerales() {
        initComponents();
        setLocation(200, 30);
        setIconifiable(true);

        jComboBox3.setEnabled(false);
        jComboBox2.setEnabled(false);
        jComboBox1.setEnabled(false);
        rb_famale.setEnabled(false);
        rb_male.setEnabled(false);

        grupo_tipo_consulta.add(butt1);
        grupo_tipo_consulta.add(butt2);
        grupo_tipo_consulta.add(butt3);
        
        grupo_tipo_grafica.add(rb_pastel);
        grupo_tipo_grafica.add(rb_barra);
        
        grupo_sexo.add(rb_famale);
        grupo_sexo.add(rb_male);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        grupo_tipo_consulta = new javax.swing.ButtonGroup();
        grupo_sexo = new javax.swing.ButtonGroup();
        grupo_tipo_grafica = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        cmd_salir = new javax.swing.JButton();
        rb_sexo = new javax.swing.JRadioButton();
        rb_estrato = new javax.swing.JRadioButton();
        rb_Estado_civil = new javax.swing.JRadioButton();
        rb_escolaridad = new javax.swing.JRadioButton();
        rb_male = new javax.swing.JRadioButton();
        rb_famale = new javax.swing.JRadioButton();
        jComboBox1 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jComboBox3 = new javax.swing.JComboBox();
        txt_anio = new com.toedter.calendar.JYearChooser();
        jLabel3 = new javax.swing.JLabel();
        cmd_consultar = new javax.swing.JButton();
        rb_pastel = new javax.swing.JRadioButton();
        rb_barra = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        butt1 = new javax.swing.JRadioButton();
        butt2 = new javax.swing.JRadioButton();
        jLabel4 = new javax.swing.JLabel();
        butt3 = new javax.swing.JRadioButton();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Filtros"));

        cmd_salir.setText("Salir");
        cmd_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmd_salirActionPerformed(evt);
            }
        });

        rb_sexo.setText("Sexo");
        rb_sexo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_sexoActionPerformed(evt);
            }
        });

        rb_estrato.setText("Estrato");
        rb_estrato.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_estratoActionPerformed(evt);
            }
        });

        rb_Estado_civil.setText("Estado civil");
        rb_Estado_civil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_Estado_civilActionPerformed(evt);
            }
        });

        rb_escolaridad.setText("Escolaridad");
        rb_escolaridad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_escolaridadActionPerformed(evt);
            }
        });

        rb_male.setText("Masculino");

        rb_famale.setText("Femenino");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-----", "1", "2", "3", "4", "5", "6" }));

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "----", "Soltero/a", "Casado/a", "Divorciado/a", "Viudo/a", "Separado/a" }));

        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "----", "Tecnico", "universitario", "N/A" }));

        jLabel3.setText("Año");

        cmd_consultar.setText("Consultar");
        cmd_consultar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmd_consultarActionPerformed(evt);
            }
        });

        rb_pastel.setText("Pastel");
        rb_pastel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_pastelActionPerformed(evt);
            }
        });

        rb_barra.setText("Barras");
        rb_barra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_barraActionPerformed(evt);
            }
        });

        jLabel1.setText("Tipo de grafica");

        butt1.setText("Total tiempo de espera promedio");
        butt1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt1ActionPerformed(evt);
            }
        });

        butt2.setText("Tiempo espera promedio Citas Especializadas");
        butt2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt2ActionPerformed(evt);
            }
        });

        jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        jLabel4.setText("Tipo de consulta");

        butt3.setText("Tiempo espera promedio Citas Generales");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(141, 141, 141)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(cmd_consultar)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(butt1)
                                    .addComponent(butt2)
                                    .addComponent(butt3))
                                .addGap(20, 20, 20)))
                        .addGap(34, 34, 34)
                        .addComponent(cmd_salir)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(119, 119, 119)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rb_famale)
                            .addComponent(rb_sexo)
                            .addComponent(rb_male))
                        .addGap(44, 44, 44)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rb_estrato)
                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rb_Estado_civil)
                            .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(38, 38, 38)))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(rb_escolaridad)
                            .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(54, 54, 54)
                                .addComponent(jLabel3))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(45, 45, 45)
                                .addComponent(txt_anio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel1)
                        .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(rb_barra)
                                .addComponent(rb_pastel)))))
                .addGap(20, 20, 20))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(294, 294, 294)
                .addComponent(jLabel4)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rb_sexo, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(rb_estrato, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(rb_Estado_civil)
                                .addComponent(rb_escolaridad)
                                .addComponent(jLabel3)))
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(5, 5, 5)
                                .addComponent(txt_anio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(rb_famale))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rb_pastel)
                    .addComponent(rb_male))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rb_barra)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(butt1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(butt2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(butt3)
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmd_consultar)
                    .addComponent(cmd_salir)))
        );

        jLabel2.setFont(new java.awt.Font("Trebuchet MS", 1, 18)); // NOI18N
        jLabel2.setText("Tiempo Promedio de espera");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jComboBox3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jComboBox3ActionPerformed

    private void rb_famaleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_famaleActionPerformed

      
    }//GEN-LAST:event_rb_famaleActionPerformed

    private void rb_maleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_maleActionPerformed


    }//GEN-LAST:event_rb_maleActionPerformed

    private void butt2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_butt2ActionPerformed

    private void butt1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_butt1ActionPerformed

    private void rb_barraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_barraActionPerformed

    }//GEN-LAST:event_rb_barraActionPerformed

    private void rb_pastelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_pastelActionPerformed
        // TODO add your handling code here:

    }//GEN-LAST:event_rb_pastelActionPerformed

    private void cmd_consultarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmd_consultarActionPerformed

        sexo = "";
        estrato = "";
        estadocivil = "";
        nivelE = "";

        if (rb_famale.isSelected()) {

            sexo = "F";
        } else if (rb_male.isSelected()) {
            sexo = "M";
        } else {
            sexo = "";
        }

        if (rb_estrato.isSelected()) {

            estrato = (String) jComboBox1.getSelectedItem();

            if (estrato.equals("-----")) {
                estrato = "";
            } else {

                estrato = "";
            }
        }

        if (rb_Estado_civil.isSelected()) {

            estadocivil = (String) jComboBox2.getSelectedItem();

            if (estadocivil.equals("Soltero/a")) {

                estadocivil = "Soltero";

            } else if (estadocivil.equals("Casado/a")) {

                estadocivil = "Casado";
            } else if (estadocivil.equals("Divorciado/a")) {

                estadocivil = "Divorciado";

            } else if (estadocivil.equals("Viudo/a")) {

                estadocivil = "Viudo";
            } else if (estadocivil.equals("Separado/a")) {

                estadocivil = "Separado";
            } else {

                estadocivil = "";
            }
        }

        if (rb_escolaridad.isSelected()) {
            nivelE = (String) jComboBox3.getSelectedItem();

            if (nivelE.equals("Tecnico")) {

                nivelE = "Técnico";
            } else if (nivelE.equals("universitario")) {

                nivelE = "Universitario";

            } else if (nivelE.equals("N/A")) {

                nivelE = "NO APLICA";
            } else {

                nivelE = "";
            }
        }

        PromedioTiempoCitas ptc = new PromedioTiempoCitas();
        String anio = Integer.toString(txt_anio.getYear());
        String series = "";
        String titulo = "";

        if (butt1.isSelected()) {
            titulo = "Colombia Saludable - Total tiempo de espera promedio citas (citas generales, citas especializadas)";

            series = ptc.getPromCitasPorAño(anio, estrato, sexo, estadocivil, nivelE);

            if (rb_pastel.isSelected()) {

                ptc.CrearGraficoDePastel(series, titulo);

            } else if (rb_barra.isSelected()) {

                ptc.CrearGraficoDeBarras(series, titulo, "Meses", "Promedio de espera en dias");

            } else {

                ptc.CrearGraficoDeBarras(series, titulo, "Meses", "Promedio de espera en dias");

            }
        } else if (butt2.isSelected()) {

            titulo = "Colombia Saludable - Total tiempo de espera promedio citas especializadas";
            series = ptc.getPromCitasEspPorAño(anio, estrato, sexo, estadocivil, nivelE);


            if (rb_pastel.isSelected()) {

                ptc.CrearGraficoDePastel(series, titulo);

            } else if (rb_barra.isSelected()) {

                ptc.CrearGraficoDeBarras(series, titulo, "Meses", "Promedio de espera en dias");

            } else {

                ptc.CrearGraficoDeBarras(series, titulo, "Meses", "Promedio de espera en dias");

            }

        } else if (butt3.isSelected()) {
            titulo = "Colombia Saludable - Total tiempo de espera promedio citas generales";
            series = ptc.getPromCitasGenPorAño(anio, estrato, sexo, estadocivil, nivelE);
            
            if (rb_pastel.isSelected()) {

                ptc.CrearGraficoDePastel(series, titulo);

            } else if (rb_barra.isSelected()) {

                ptc.CrearGraficoDeBarras(series, titulo, "Meses", "Promedio de espera en dias");

            } else {

                ptc.CrearGraficoDeBarras(series, titulo, "Meses", "Promedio de espera en dias");

            }
        }else{
        
            JOptionPane.showMessageDialog(null, "Confirme el tipo de grafica y el tipo de consulta", "Error", JOptionPane.ERROR_MESSAGE);
        
        }




    }//GEN-LAST:event_cmd_consultarActionPerformed

    private void rb_escolaridadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_escolaridadActionPerformed
        if (rb_escolaridad.isSelected()) {

            jComboBox3.setEnabled(true);
            this.repaint();

        } else {

            jComboBox3.setEnabled(false);
            this.repaint();

        }
    }//GEN-LAST:event_rb_escolaridadActionPerformed

    private void rb_Estado_civilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_Estado_civilActionPerformed

        if (rb_Estado_civil.isSelected()) {

            jComboBox2.setEnabled(true);
            this.repaint();
        } else {

            jComboBox2.setEnabled(false);
            this.repaint();

        }
    }//GEN-LAST:event_rb_Estado_civilActionPerformed

    private void rb_estratoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_estratoActionPerformed

        if (rb_estrato.isSelected()) {
            jComboBox1.setEnabled(true);
            this.repaint();
        } else {
            jComboBox1.setEnabled(false);
            this.repaint();
        }
    }//GEN-LAST:event_rb_estratoActionPerformed

    private void rb_sexoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_sexoActionPerformed

        if (rb_sexo.isSelected()) {

            rb_famale.setEnabled(true);
            rb_male.setEnabled(true);
            this.repaint();

        } else {

            rb_famale.setEnabled(false);
            rb_male.setEnabled(false);
            this.repaint();

        }
    }//GEN-LAST:event_rb_sexoActionPerformed

    private void cmd_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmd_salirActionPerformed
        this.dispose();
    }//GEN-LAST:event_cmd_salirActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CitasGenerales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CitasGenerales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CitasGenerales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CitasGenerales.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CitasGenerales().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JRadioButton butt1;
    private javax.swing.JRadioButton butt2;
    private javax.swing.JRadioButton butt3;
    private javax.swing.JButton cmd_consultar;
    private javax.swing.JButton cmd_salir;
    private javax.swing.ButtonGroup grupo_sexo;
    private javax.swing.ButtonGroup grupo_tipo_consulta;
    private javax.swing.ButtonGroup grupo_tipo_grafica;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JRadioButton rb_Estado_civil;
    private javax.swing.JRadioButton rb_barra;
    private javax.swing.JRadioButton rb_escolaridad;
    private javax.swing.JRadioButton rb_estrato;
    private javax.swing.JRadioButton rb_famale;
    private javax.swing.JRadioButton rb_male;
    private javax.swing.JRadioButton rb_pastel;
    private javax.swing.JRadioButton rb_sexo;
    private com.toedter.calendar.JYearChooser txt_anio;
    // End of variables declaration//GEN-END:variables
}
